package odmd.handler;

import java.nio.channels.SocketChannel;

public final class SocketChannelTask implements Runnable {
	private SocketChannel sc;
	private String rootDir;
	private int ioBufferSize;
	public SocketChannelTask(SocketChannel sc, String rootDir, int ioBufferSize) {
		this.sc = sc;
		this.rootDir = rootDir;
		this.ioBufferSize = ioBufferSize;
	}
	public void run() {
		RequestHandler.handle(sc, rootDir, ioBufferSize);
	}
}
